exports.js = () => {
  return {
    name: 'base-input',
    components: {
    },

    created () {
    },

    props: {
      label: { type: String, default: '' },
      placeholder: { type: String, default: '' },
      value: { type: [String, Number, Object], default: '' },
      validate: { type: Object, default: () => {} },
    },

    data () {
      return {
        currentValue: this.value,
      }
    },

    computed: {
    },

    watch: {
    },

    methods: {
      handleInput(event) {
        var value = event.target.value
        this.$emit('input', value) // 触发 input 事件，并传入新值
      }
    },

    mounted () {
    }
  }
}
